home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2.sit / Raven 1.2 / • Extras • / SGI STL / (config) / stlcomp.h.w11 < prev    next >
Text File  |  1997-05-28  |  3KB  |  88 lines

  1. #ifndef __STLCOMP_H
  2. # define __STLCOMP_H
  3. // Settings for Watcom C++ 11
  4.  
  5. // define that to disable these features
  6. // # define __STL_NO_EXCEPTIONS
  7. // # define __STL_NO_NAMESPACES
  8.  
  9. // select allocation method you like
  10. // #define  __STL_USE_MALLOC
  11. // this one is not mandatory, just enabled
  12. #define __STL_USE_DEFALLOC 1
  13.  
  14. // define NO_USING_STD if don't want using STL namespace by default
  15. // new-style-headers define that to get proper behaviour
  16. # define __STL_NO_USING_STD
  17.  
  18. // define __STL_USE_ABBREVS if your linker has trouble with long 
  19. // external symbols
  20. // # define  __STL_USE_ABBREVS 1
  21.  
  22. // set this to force checked allocators
  23. // #  define __STL_DEBUG_ALLOC 1
  24.  
  25. // unsigned 32-bit integer type
  26. #  define __STL_UINT32_T unsigned long
  27.  
  28. # if defined (__WATCOM_CPLUSPLUS__)
  29. #  if (__WATCOM_CPLUSPLUS__ >= 1100 )
  30.  
  31. // Can define if you enable /xs compiler option
  32. #   if 0
  33. #    define __STL_EXCEPTIONS 1
  34. #    define __STL_EXCEPTION_SPEC 1
  35. #   else
  36. #    undef  __STL_EXCEPTIONS
  37. #    undef  __STL_EXCEPTION_SPEC
  38. #   endif
  39.  
  40. // Config sample does not detect any problems with Watcom's namespace support
  41. #   undef  __STL_NAMESPACES
  42. // First error:
  43. //algobase.h(422): Error! E043: col(1) static function 'min' has not been defined
  44. //algobase.h(422): Note! N393: col(1) included from d:¥cpp¥stl¥sgi¥vector.h(58)
  45. //algobase.h(422): Note! N393: col(1) included from ACCUM1.CPP(5)
  46. //algobase.h(422): Note! N392: col(1) 'unsigned const & std::min( unsigned const &, unsigned const & )' defined in: d:¥cpp¥stl¥sgi¥algobase.h(404) (col 49)
  47.  
  48. // Config sample does not catch:
  49. #   define __STL_NESTED_TYPE_PARAM_BUG 1
  50. /* Example error:
  51. tree.h(797): Error! E350: col(6) non-type parameter supplied for a type argument
  52. tree.h(797): Note! N393: col(6) included from d:¥cpp¥stl¥sgi¥map.h(44)
  53. tree.h(797): Note! N393: col(6) included from MAP1.CPP(6)
  54. */
  55.  
  56. #   define __STL_BOOL_KEYWORD 1
  57. #   undef  __STL_RAND48
  58. #   undef  __STL_DEFAULT_TEMPLATE_PARAM
  59. #   undef  __STL_DEFAULT_TYPE_PARAM
  60. #   define __STL_STATIC_TEMPLATE_DATA 1
  61. #   undef  __STL_TYPENAME
  62. #   define __STL_EXPLICIT 1
  63. #   undef  __STL_BASE_MATCH_BUG
  64. #   undef  __STL_BASE_TYPEDEF_BUG
  65. #   define __STL_BASE_TYPEDEF_OUTSIDE_BUG 1
  66. #   undef  __STL_UNINITIALIZABLE_PRIVATE
  67. #   define __STL_CONST_CONSTRUCTOR_BUG 1
  68. #   undef  __STL_LOOP_INLINE_PROBLEMS
  69. #   define __STL_NEW_HEADER_NAMES 1
  70. #   undef  __STL_WCHAR_T
  71. #   undef  __STL_LONG_LONG
  72. #   define __STL_LONG_DOUBLE 1
  73. #   undef  __STL_FRIEND_TEMPLATES
  74. #   undef  __STL_CLASS_PARTIAL_SPECIALIZATION
  75. #   undef  __STL_FUNC_PARTIAL_ORDERING
  76. #   define __STL_MUTABLE 1
  77. #   define __STL_NEW_STYLE_CASTS 1
  78. #   undef  __STL_FULL_SPEC_SYNTAX
  79. #   undef  __STL_UNUSED_REQUIRED_BUG
  80. #   undef  __STL_MEMBER_POINTER_PARAM_BUG
  81. #   undef  __STL_BAD_ALLOC_DEFINED
  82. #   undef  __STL_AUTOMATIC_TYPE_TRAITS
  83.  
  84. #  endif
  85. # endif /* __WATCOM_CPLUSPLUS__ */
  86.  
  87. # endif /* STLCOMP_H */
  88.